package cn.kpi.dao.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.sys.RoleEntity;

@MyBatisDao
public interface RoleDao {
	public List<RoleEntity> GetRoleList(@Param("where") String where) throws Exception;
	
	public List<RoleEntity> GetRoleListLimit(@Param("where") String where,@Param("order") String order,@Param("beginrow") int beginrow,@Param("endrow") int endrow) throws Exception;

	public RoleEntity GetRoleByName(@Param("rolename") String rolename) throws Exception;

	public int GetRoleListCount(@Param("where") String where) throws Exception;

	public int InsertEntity(RoleEntity entity) throws Exception;

	public int UpdateEntity(RoleEntity entity) throws Exception;

	public int DeleteEntity(@Param("roleid") Long roleid) throws Exception;
}
